<template>
    <div class="header-box">
        <van-icon name="arrow-left" size="24" @click="goBack" />
        <div class="header-item">{{ title }}</div>
        <van-icon name="arrow-left" size="24" style="visibility: hidden;" />
    </div>
</template>

<script>
export default {
    name: "HeaderComp",
    props: {
        title: {
            type: String,
        },
    },
    data() {
        return {};
    },
    methods: {
        goBack() {
            this.$router.go(-1);
        },
    },
};
</script>
<style scoped lang="less">
.header-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px;
    border-bottom: 1px solid #d7d7d7;
    font-size: 36px;
    background: #fff;
    .header-item {
        font-weight: 500;
        color: #131313;
    }
}
</style>
